/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

/**
 *
 * @author Paul
 */
public class Note {
    float note;
    int idExamen;
    int idEleve;
    
    public Note(int idEleve, int idExamen, float note ){
        this.idEleve=idEleve;
        this.idExamen = idExamen;
        this.note = note;
    }
    
        public Note(float note ){
        this.note=note;
    }
        
    public float getNote(){
        return this.note;
    }
    
    public int getIdEleve(){
        return idEleve;
    }

    public int getIdExamen() {
        return idExamen;
    }

public int compareTo(Object o)
{
    //FoodItems temp = (FoodItems) o;
    if(this.note == ((Note)o).getNote())
        return 0;
    else 
        return -1;
}

}
